﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="sum_of_two_numbers._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    
    <p>
        Please enter the first number:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="tb_firstnum" runat="server" Width="80px"></asp:TextBox>
    &nbsp;
    <asp:RangeValidator ID="rangeval_1" runat="server" ControlToValidate="tb_firstnum" 
            ErrorMessage="Wrong Value!" MaximumValue="10000000" MinimumValue="0" 
            Type="Integer" ForeColor="#FF3300"></asp:RangeValidator>
    
    </p>
    <p>
        Please enter the second number:&nbsp;&nbsp; 
        <asp:TextBox ID="tb_secondnum" runat="server" Width="80px"></asp:TextBox>
    &nbsp;
    <asp:RangeValidator ID="rangeval_2" runat="server" ControlToValidate="tb_secondnum" 
            ErrorMessage="Wrong Value!" MaximumValue="10000000" MinimumValue="0" 
            Type="Integer" ForeColor="#FF3300"></asp:RangeValidator>
    
    </p>
    <p>
    <p>
        <asp:Button ID="btn_result" runat="server" Text="Calculate"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

        Result:&nbsp;&nbsp;&nbsp;  
        <asp:Label ID="lbl_result" style="font-weight:bold; font-size:large; color:Teal" runat="server" Text=""></asp:Label>
    </p>
    
</asp:Content>
